
import { Injectable, Injector } from '@angular/core';
import { NgRepository } from '@farris/devkit';
import { BefRepository, NgVariable } from '@farris/bef';
import { YgmdglEntity } from './entities/ygmdglentity';

import { YgmdglProxy } from './ygmdglproxy';

@Injectable()
@NgRepository({
    apiUrl: 'api/employeecenter/yggl/v1.0/yg_frm',
    entityType: YgmdglEntity
})
export class YgmdglRepository extends BefRepository<YgmdglEntity> {
    public name = 'YgmdglRepository';

    public proxy: YgmdglProxy;
    public paginationInfo = {
        YgmdglEntity: {
            pageSize: 20,
        }
    };
    constructor(injector: Injector) {
        super(injector);
        this.proxy = injector.get(YgmdglProxy, null);
    }
}